package com.jsz.peini.service.codes;

import java.util.LinkedHashMap;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jsz.peini.bean.codes.SystemDistrict;
import com.jsz.peini.mapper.codes.SystemDistrictMapper;

@Service
public class SystemDistrictService {
	
	@Resource
	private SystemDistrictMapper systemDistrictMapper;
	
	public List<SystemDistrict> findCounty(){
		List<SystemDistrict> codeList = systemDistrictMapper.findCounty();
		return codeList;
	}
	
	public List<SystemDistrict> findDistrict(){
		List<SystemDistrict> codeList = systemDistrictMapper.findDistrict();
		return codeList;
	}

	public int updateDistrict(String placeCode){
		int District=systemDistrictMapper.updateDistrict(placeCode);
		return District;
	}
	
	public List<LinkedHashMap<String,Object>> getDistrictList(){
		List<LinkedHashMap<String,Object>> districtHotList=systemDistrictMapper.getDistrictList();
		return districtHotList;
	}
}
